import Vue from 'vue'
import Vuex from 'vuex'
import app, { State as AppState } from './modules/app'
import user, { State as UserState } from './modules/user'
import getters from './getters'

Vue.use(Vuex)

export interface State {
  app: AppState,
  user: UserState
}

export default new Vuex.Store({
  modules: {
    app,
    user,
  },
  getters,
})
